package csu.ssd.student;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

import java.io.IOException;

public class ShouyeController {

    @FXML
    private Button subjectButton;

    @FXML
    private Button messageButton;

    @FXML
    private Button scoreButton;

    @FXML
    void score(ActionEvent event) throws IOException{

        AnchorPane borderPane = null;
        try {
            borderPane = FXMLLoader.load(this.getClass().getResource("main.fxml"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        Stage stage = new Stage();
        Scene scene = new Scene(borderPane);

        stage.setScene(scene);
        stage.setTitle("成绩页面");

        stage.show();

    }


    //勿删
    public static Stage scoreStage = new Stage();

    @FXML
    void subject(ActionEvent event) throws IOException {

        AnchorPane borderPane = null;
        try {
            borderPane = FXMLLoader.load(this.getClass().getResource("score.fxml"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        //Stage stage = new Stage();
        Scene scene = new Scene(borderPane);

        scoreStage.setScene(scene);
        scoreStage.setTitle("评教页面");
        scoreStage.show();


    }//课程评分页面


    @FXML
    void message(ActionEvent event) {

    }//个人信息管理页面




}

